import headerLogo from '@/assets/svg/fontApp/header_logo.svg'
export default {
    namespaced: true,
    state: {
        bgColor: 'rgba(0, 0, 0, 0.03)',
        logoImg: headerLogo
    },
    getters: {},
    mutations: {
        setData(state, data) {
            for (let i = 0; i < data.length; i++) {
                const element = data[i];
                state[element.key] = element.value;
            }
        }
    },
    actions: {
        changeHeader(context, data) {
            context.commit('setData', data)
        }
    }
}